package com.bai.websocketandmybatisplus.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("chat_history")
@ApiModel("聊天记录")

public class ChatHistory {

    // 主键id
    private Integer id;
    // 对话内容
    @TableField("content")
    private String content;
    // 对话时间
    @TableField("created_at")
    private LocalDateTime createdAt;

}